<template>
  <div class="homePage">
    <top-operation :title="title"></top-operation>
    <base-scroll :dataList="FContent" class="homeEdit">
      <div v-html="FContent"></div>
    </base-scroll>
  </div>
</template>

<script>
import { getExcludeHeight, DEVICE_RATIO, DOWN_CONFIG, UP_CONFIG } from '@/until/until.js'
import baseScroll from '@/common/scroller/baseScroll.vue'
import topOperation from '@/common/topOperation/topTitle.vue'

export default {
  components: {
    baseScroll,
    topOperation
  },
  data() {
    return {
      title: '信息展示',
      FContent: '',
      inSearching: false
    }
  },
  mounted() {
    const theRequest = this.$route.query
    const getPage = { curr: theRequest.curr, pageSize: 5 }
    this.$axios.post('/api/LoanAdvert/GetLoanAdvert', getPage)
      .then((response) => {
        const res = response.data.object
        for (const i in res) {
          if (res[i].FID == theRequest.FID) {
            this.FContent = res[i].FContent
          }
        }
      })
      .catch((err) => {
        console.log(err)
      })
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
